﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MySpace.Data;

public partial class Manage_Ad_Lottery_List : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            this.bd();
        }
    }
    private void bd()
    {
        DBHandler dbh = GetHandler.Init();
        dbh.CommandText = "select * from Lottery order by id desc";
        lottery_list.DataSource = dbh.ExecuteDataTable();
        lottery_list.DataBind();
    }
}